package lab02.test21;

/**
 * Created by ASUS on 2017/10/29.
 */
public class Test {
    public static void main(String[] args) {
        String sc;
        int h=0;
        sc="ryrbcsetrevrr5r";
        for(int i=0;i<sc.length();i++){
           char tmp=sc.charAt(i);
           if(tmp=='r'){
                h+=1;
           }

        }
        System.out.println(""+h);
    }
}
